<div style="clear:both;">
    <?php $this->widget('zii.widgets.CMenu', array(
    'items' => array(
        array('label' => 'Location info', 'url' => array('Locations/update', 'id' => $model->id)),
        array('label' => 'Contacts', 'url' => array('/Locationcontacts', 'id' => $model->id), 'active' => Yii::app()->controller->id == 'locationcontacts'),
        array('label' => 'Equipment', 'url' => array('/Equipment', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'equipment'),
        array('label' => 'Documents', 'url' => array('/Documents', 'custno' => $model->custno, 'locno' => $model->locno, 'type' => DOCTYPE_LOC), 'active' => Yii::app()->controller->id == 'documents'),
        //array('label' => 'Invoices', 'url' => array('/Invoices','type'=>Invoice::TYPE_INVOICE, 'custno' => $model->custno, 'locno' => $model->locno,), 'active' => Yii::app()->controller->id == 'invoices'),
        array('label' => 'Dispatches', 'url' => array('/Dispatchdetails', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'dispatchdetails'),
        array('label' => 'Job', 'url' => array('/jobs', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'jobs'),
        array('label' => 'Accounting', 'url' => array('/accounting', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'accounting'),        
        array('label' => 'Contracts', 'url' => array('/contracts', 'custno' => $model->custno, 'locno' => $model->locno), 'active' => Yii::app()->controller->id == 'contracts'),
    ),
    'id' => 'tab-menu',
    'htmlOptions' => array(
        'class' => 'tabs tabs-with-summary',
    ),
    'submenuHtmlOptions' => array('class' => 'tabs tabs-with-summary'),
));?>
</div>